package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunProfileOwnerMapper;
import com.ruoyi.yun.domain.YunProfileOwner;
import com.ruoyi.yun.service.IYunProfileOwnerService;

/**
 * 业户管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunProfileOwnerServiceImpl implements IYunProfileOwnerService 
{
    @Autowired
    private YunProfileOwnerMapper yunProfileOwnerMapper;

    /**
     * 查询业户管理
     * 
     * @param id 业户管理主键
     * @return 业户管理
     */
    @Override
    public YunProfileOwner selectYunProfileOwnerById(Long id)
    {
        return yunProfileOwnerMapper.selectYunProfileOwnerById(id);
    }

    /**
     * 查询业户管理列表
     * 
     * @param yunProfileOwner 业户管理
     * @return 业户管理
     */
    @Override
    public List<YunProfileOwner> selectYunProfileOwnerList(YunProfileOwner yunProfileOwner)
    {
        return yunProfileOwnerMapper.selectYunProfileOwnerList(yunProfileOwner);
    }

    /**
     * 新增业户管理
     * 
     * @param yunProfileOwner 业户管理
     * @return 结果
     */
    @Override
    public int insertYunProfileOwner(YunProfileOwner yunProfileOwner)
    {
        return yunProfileOwnerMapper.insertYunProfileOwner(yunProfileOwner);
    }

    /**
     * 修改业户管理
     * 
     * @param yunProfileOwner 业户管理
     * @return 结果
     */
    @Override
    public int updateYunProfileOwner(YunProfileOwner yunProfileOwner)
    {
        return yunProfileOwnerMapper.updateYunProfileOwner(yunProfileOwner);
    }

    /**
     * 批量删除业户管理
     * 
     * @param ids 需要删除的业户管理主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileOwnerByIds(Long[] ids)
    {
        return yunProfileOwnerMapper.deleteYunProfileOwnerByIds(ids);
    }

    /**
     * 删除业户管理信息
     * 
     * @param id 业户管理主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileOwnerById(Long id)
    {
        return yunProfileOwnerMapper.deleteYunProfileOwnerById(id);
    }
}
